import "babel-polyfill";
async function getComponent() {
  let element = document.createElement('div')
  const _ = await import(/* webpackChunkName: "lodash" */ 'lodash');
  element.innerHTML = _.join(['Hello', 'webpack'], ' ');
  return element;
}

// getComponent().then(component => {
//   document.body.appendChild(component);
// })

(async function() {
  document.body.appendChild(await getComponent())
})()
